home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / gfx.shader < prev    next >
Encoding:
Text File  |  2002-10-21  |  2.5 KB  |  180 lines

  1. // 2D shaders
  2. gfx/2d/backtile
  3. {
  4.     nopicmip
  5.     nomipmaps
  6.     {
  7.         noDepthTest
  8.         map gfx/2d/backtile.tga
  9.     }
  10. }
  11.  
  12. gfx/fonts/facfont-20
  13. {
  14.     nopicmip
  15.     nomipmaps
  16.     {
  17.         map gfx/fonts/facfont-20.tga
  18.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  19.         rgbGen identity
  20.     }
  21. }
  22.  
  23. gfx/fonts/marlett
  24. {
  25.     nopicmip
  26.     nomipmaps
  27.     {
  28.         map gfx/fonts/marlett.tga
  29.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  30.         rgbGen identity
  31.     }
  32. }
  33.  
  34. gfx/fonts/verdana-12
  35. {
  36.     nopicmip
  37.     nomipmaps
  38.     {
  39.         map gfx/fonts/verdana-12.tga
  40.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  41.         rgbGen identity
  42.     }
  43. }
  44.  
  45. gfx/fonts/verdana-14
  46. {
  47.     nopicmip
  48.     nomipmaps
  49.     {
  50.         map gfx/fonts/verdana-14.tga
  51.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  52.         rgbGen identity
  53.         nodepthtest
  54.     }
  55. }
  56.  
  57. gfx/2d/arrow_right
  58. {
  59.     nopicmip
  60.     nomipmaps
  61.     {
  62.         map gfx/2d/arrow_right.tga
  63.         blendFunc GL_ONE GL_ZERO
  64.         rgbGen identity
  65.     }
  66. }
  67.  
  68. gfx/2d/arrow_left
  69. {
  70.     nopicmip
  71.     nomipmaps
  72.     {
  73.         map gfx/2d/arrow_left.tga
  74.         blendFunc GL_ONE GL_ZERO
  75.         rgbGen identity
  76.     }
  77. }
  78.  
  79. gfx/2d/blank
  80. {
  81.     nomipmaps
  82.     {
  83.         map gfx/2d/blank.tga
  84.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  85.         alphaGen oneMinusVertex
  86.         rgbGen vertex
  87.     }
  88. }
  89.  
  90. gfx/2d/slowserver
  91. {
  92.     nopicmip
  93.     nomipmaps
  94.     {
  95.         map gfx/2d/slowserver.tga
  96.         alphaFunc GT0
  97.     }
  98. }
  99.  
  100. ////////////////////////////////////////
  101. //extra fonts for game
  102. ////////////////////////////////////////
  103.  
  104. gfx/fonts/courier-16
  105. {
  106.     nopicmip
  107.     nomipmaps
  108.     {
  109.         map gfx/fonts/courier-16.tga
  110.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  111.         rgbGen identity
  112.     }
  113. }
  114.  
  115. gfx/fonts/courier-18
  116. {
  117.     nopicmip
  118.     nomipmaps
  119.     {
  120.         map gfx/fonts/courier-18.tga
  121.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  122.         rgbGen identity
  123.     }
  124. }
  125.  
  126. gfx/fonts/courier-20
  127. {
  128.     nopicmip
  129.     nomipmaps
  130.     {
  131.         map gfx/fonts/courier-20.tga
  132.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  133.         rgbGen identity
  134.     }
  135. }
  136.  
  137. gfx/fonts/handle-16
  138. {
  139.     nopicmip
  140.     nomipmaps
  141.     {
  142.         map gfx/fonts/handle-16.tga
  143.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  144.         rgbGen identity
  145.     }
  146. }
  147.  
  148. gfx/fonts/handle-18
  149. {
  150.     nopicmip
  151.     nomipmaps
  152.     {
  153.         map gfx/fonts/handle-18.tga
  154.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  155.         rgbGen identity
  156.     }
  157. }
  158.  
  159. gfx/fonts/handle-22
  160. {
  161.     nopicmip
  162.     nomipmaps
  163.     {
  164.         map gfx/fonts/handle-22.tga
  165.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  166.         rgbGen identity
  167.     }
  168. }
  169.  
  170. gfx/fonts/handle-23
  171. {
  172.     nopicmip
  173.     nomipmaps
  174.     {
  175.         map gfx/fonts/handle-23.tga
  176.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  177.         rgbGen identity
  178.     }
  179. }
  180.